import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/init/main.scss';
import '@/init/theme.scss'
import App from '@/App.vue'
import Api from '@/lib/api'
import router from '@/router'
import store from '@/store'
import format from '@/utils/format'
import test from '@/test/default'
import '@/registerServiceWorker'

Vue.config.productionTip = false;

Vue.filter('formatDate', format.formatDate);
Vue.filter('formatPrice', format.formatPrice);
Vue.prototype.$api = Api;

Vue.prototype.$test = test;

Vue.use(ElementUI, {size: 'medium',zIndex: 3000});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
